package com.tanhua.service;

import com.tanhua.dubbo.BlackListAPI;
import com.tanhua.interceptor.UserHolder;
import com.tanhua.vo.BlackListVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class BlackListService {

    @DubboReference
    private BlackListAPI blackListAPI;

    public BlackListVo getBlackListByPage(Integer page, Integer pagesize) {
        return blackListAPI.getBlackListByPage(UserHolder.getUserId(),page,pagesize);
    }

    public void deleteBlackList(Long blackUserId) {
        blackListAPI.deleteBlackList(UserHolder.getUserId(),blackUserId);
    }
}
